<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
    <div id="app">
        <h1>插值语法</h1>
        <h3>hello, {{name}}</h3>

        <h1>指令语法</h1>
        <a v-bind:href="net.address">点击跳转</a>
        <br/> 或者 使用简写形式
        <a :href="net.address">点击跳转</a>
    </div>

    <script>
        Vue.config.productionTip = false;
        new Vue({
            el: '#app',
            data:{
                name: 'world',
                net: {
                    address: 'https://www.baidu.com'
                }
            }
        })
    </script>
</body>
</html>